package com.easytest.enums;

public enum VerifyRegexEnum {
    PHONE("^1[3-9]\\d{9}$","手机号码"),
    PASSWORD("^(?=.*\\d)(?=.*[a-zA-Z])[\\da-zA-Z~!@#$%^&*_]{8,}$","只能是字母、数字、特殊字符的8-18位");

    private String regex;
    private String desc;

    VerifyRegexEnum(String regex, String desc) {
        this.regex = regex;
        this.desc = desc;
    }

    public String getRegex(){
        return regex;
    }

    public String getDesc(){
        return desc;
    }
}
